package com.oplink.webems.common.snmp.base;

import com.oplink.webems.common.snmp.security.CommBaseSecurity;

public class Communication {

	protected String ip;
	private CommBaseSecurity community; 
	private int port;
	private int timeout;
	private int retry;
	private int version;
	
	/**
	 * 
	 * @param _ip 目的地址
	 * @param _community 以一定的顺序将用户名，密码，加密方式等加入到该数组
	 * @param _port 通讯端口
	 * @param _timeout 超时时间
	 * @param _retry 重试次数
	 * @param _version 通讯版本
	 */
	public Communication(String _ip, CommBaseSecurity _community, int _port, int _timeout, int _retry, int _version){
		this.ip = _ip;
		this.community = _community;
		this.port = _port;
		this.timeout = _timeout;
		this.retry = _retry;
		this.version = _version;
	}
	
	public Communication() {
		
	}

	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public CommBaseSecurity getCommunity() {
		return community;
	}
	public void setCommunity(CommBaseSecurity community) {
		this.community = community;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public int getTimeout() {
		return timeout;
	}
	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}
	public int getRetry() {
		return retry;
	}
	public void setRetry(int retry) {
		this.retry = retry;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {

	}

}
